<?php
	class Helper
	{
		public static function dasherize ( $string )
		{		
			# 	Convert spaces to dashes
			return str_replace( ' ', '-', $string );
		}

		public static function undasherize ( $string )
		{
			# 	Convert dashes to spaces
			return str_replace( '-', ' ', $string );
		}
		
		public static function titlecase ( $string )
		{ 
			return mb_convert_case( $string, MB_CASE_TITLE, "UTF-8" );
		}	
/*
		public static function camelize ( $string )
		{ 		
			# adapting from prototype.js
			# converting to php code from js code
		
			$parts = explode('-', $string );
			$len = count(parts);
			if ($len == 1)
			{
				return $parts[0];
			}

			$camelized = this.charAt(0) == '-'
			  ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1)
			  : parts[0];

			for ($i = 1; $i < $len; $i++)
			{
			  $camelized += $parts[i].charAt(0).toUpperCase() + $parts[i].substring(1);
			}

			return $camelized;		
		}	
		
		public static function camel2dash ( $string )
		{
			return ucwords( strtolower( $string ) );
		}	
		*/
	}
?>